/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.perspecte.vsflean.ui.backingbeans;

import com.perspecte.vsflean.app.pojo.ProductionReport;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;


/**
 *
 * @author Sandeep
 */
public class ProductionReportUI {

    
    /** Creates a new instance of ProductionReportUI */
    public ProductionReportUI() {
        populateDailySummary();
        populateHourlySummary();
        populateModelSummary();
        populateLineSummary();
    }

    private List<ProductionReport> dailySummary;

    private List<ProductionReport> hourlySummary;
    
    private List<ProductionReport> modelSummary;
    
    private List<ProductionReport> lineSummary;
    
    
    private  void populateDailySummary(){
        dailySummary= new ArrayList<ProductionReport>();
        ProductionReport pr;
        pr= new ProductionReport("143", "8413", "4413", "2010-12-05", "Plant-1", "Magic", "FG", 500,800,600);
        dailySummary.add(pr);
        pr= new ProductionReport("143", "8413", "4413", "2010-12-06", "Plant-1", "Magic", "FG", 800,800,800);
        dailySummary.add(pr);
        pr= new ProductionReport("143", "8413", "4413", "2010-12-07", "Plant-1", "Magic", "FG", 1000,800,1000);
        dailySummary.add(pr);
    }
    private  void populateHourlySummary(){
        hourlySummary= new ArrayList<ProductionReport>();
        
    }
    
    private  void populateModelSummary(){
        modelSummary= new ArrayList<ProductionReport>();
        ProductionReport pr;
        pr= new ProductionReport("143", "8413", "4413", "2010-12-05", "Plant-1", "ProductA", "FG", 1200,1000,1200);
        modelSummary.add(pr);
        pr= new ProductionReport("143", "8413", "4413", "2010-12-06", "Plant-1", "ProductB", "FG", 500,800,600);
        modelSummary.add(pr);
        pr= new ProductionReport("143", "8413", "4413", "2010-12-07", "Plant-1", "ProductC", "FG", 1000,800,1000);
        modelSummary.add(pr);
        pr= new ProductionReport("143", "8413", "4413", "2010-12-07", "Plant-1", "ProductD", "FG", 800,800,800);
        modelSummary.add(pr);
        pr= new ProductionReport("143", "8413", "4413", "2010-12-07", "Plant-1", "ProductE", "FG", 1200,1200,1200);
        modelSummary.add(pr);
    }
    
    public void populateLineSummary(){
        lineSummary= new ArrayList<ProductionReport>();
        ProductionReport pr;
        pr= new ProductionReport("143", "8413", "4413", "2010-12-05", "Line-1", "ProductA", "FG", 1200,1000,1200);
        lineSummary.add(pr);
        pr= new ProductionReport("143", "8413", "4413", "2010-12-06", "Line-2", "ProductB", "FG", 500,800,600);
        lineSummary.add(pr);
        pr= new ProductionReport("143", "8413", "4413", "2010-12-07", "Line-3", "ProductC", "FG", 1000,800,1000);
        lineSummary.add(pr);
        
    }
    
    
    public List<ProductionReport> getDailySummary() {
        return dailySummary;
    }

    /**
     * @return the hourlySummary
     */
    public List<ProductionReport> getHourlySummary() {
        return hourlySummary;
    }

    /**
     * @return the modelSummary
     */
    public List<ProductionReport> getModelSummary() {
        return modelSummary;
    }

    /**
     * @return the lineSummary
     */
    public List<ProductionReport> getLineSummary() {
        return lineSummary;
    }
    
    
    
}
